package com.karry.yl.domain.elder;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.karry.commons.base.SuperEntity;
import com.karry.yl.domain.baseinfo.Organization;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("elderly")
public class Elderly extends SuperEntity {

    public static final Long ORG_ID_NONE = -1L;  //  老人出院后所属机构是 -1

    private Long orgId; // 所属机构

    //表示该属性不为数据库表字段，但又是必须使用的。
    @TableField(exist = false)
    private Organization organization;

    //入住楼-房-床位
    @TableField(exist = false)
    private String buildingNo;  //入住楼号

    @TableField(exist = false)
    private String roomNo; //入住房间号

    @TableField(exist = false)
    private String bedId; //床位id

    @TableField(exist = false)
    private String bedNo; //床位号

    private String name;

    private String openId; // 微信登录的openId

    private String idNo;

    private String sex;

    private String phone;

    private String nation;  //民族

    private Boolean youfu = false; // 是否优抚

    private Boolean emptyNest = false;  //是否空巢

    private Boolean checkedIn = null;  //是否入住

    private String healthCondition; //健康状况  1：自理老人 2：半失能老人 3：失能老人

    private String pgjg;   //评估结果

    private String avatar;  //头像

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;  //生日

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date enterDate;  //入住时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date leaveDate;  //离住时间

    private Integer elderlyNature; //被供养人性质： 默认4：特困老人

    private Long nursingDepartmentId;//分配的护理部门id -1或null表示没有分配护理部门id

    private Boolean allocationStart;//分配的状态

    /**
     * 所在地区省实体, N - 1
     */
    private String provinceName;
    private String provinceCode;

    /**
     * 所在地区市实体, N - 1
     */
    private String cityName;
    private String cityCode;

    /**
     * 所在地区区实体, N - 1
     */
    private String areaName;
    private String areaCode;

    /**
     * 所在地区区实体, N - 1
     */
    private String townName;
    private String townCode;

    //村
    private String villageName;
    private String villageCode;

    /**
     * 所在地区详细地址
     */
    private String address;

    private Long mealId; // 套餐ID

    private String mealName; //套餐名称

    private Date mealEndTime; //套餐到期时间

    private String mzName;  //所属单位名称
    private String mzCode;

    private int pgStatus;  //评估状态 1：待评估  2：已评估

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date nextPgDate; // 下次评估时间
    private String education;//学历1研究生、博士,2本科,3大专,4中专,5技校,，6高中,7初中,8小学,9文盲或半文盲
    private String age;//年龄
    private String wedding;//婚姻状况 1已婚，2未婚，3离异
    private String fmoney;//经费来源 1低保2子女赡养3社保工资4出租房子5做小生意6退休金/养老金7亲友资助
    private String fiveNo;//特困供养证号
    private String support;//原居住情况 默认1集中供养
    private String deformity;//残疾等级 1一级 2二级
    private String vision;//视力 1一级盲 2二级盲 3一级低视力 4二级低视力
    private String hear;//听力 1一级 2二级 3三级 4四级
    private String wit;//智力 1重度一级 2重度二级 3中度三级 4轻度四级
    private String talk;//言语 1一级 2二级 3三级 4四级
    private String spirit ;//精神 1重度一级 2中度二级 3轻度三级
    private String limb ;//肢体 1重度一级  2中度二级 3中度三级
    private String faith;//信仰
    private String ybnum;//医保卡号
    private String zfstatus;//支付方式
    private String zmstatus;//政治面貌
    private String allergyYaowu;//过敏药物
    private String allergyFood;//禁忌食物
    private String impDisease;//主要疾病
    private Integer personCategory;//人员类别 0老人1残疾人2未成年人
    private  Integer censusRegisterCategory;//户籍类别 0农业1城市

    public Integer getCensusRegisterCategory() {
        return censusRegisterCategory;
    }

    public void setCensusRegisterCategory(Integer censusRegisterCategory) {
        this.censusRegisterCategory = censusRegisterCategory;
    }

    public Integer getPersonCategory() {
        return personCategory;
    }

    public void setPersonCategory(Integer personCategory) {
        this.personCategory = personCategory;
    }

    public String getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(String buildingNo) {
        this.buildingNo = buildingNo;
    }

    public String getRoomNo() {
        return roomNo;
    }

    public void setRoomNo(String roomNo) {
        this.roomNo = roomNo;
    }

    public String getBedId() {
        return bedId;
    }

    public void setBedId(String bedId) {
        this.bedId = bedId;
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo;
    }
    public static Long getOrgIdNone() {
        return ORG_ID_NONE;
    }

    public Long getNursingDepartmentId() {
        return nursingDepartmentId;
    }

    public void setNursingDepartmentId(Long nursingDepartmentId) {
        this.nursingDepartmentId = nursingDepartmentId;
    }

    public Boolean getAllocationStart() {
        return allocationStart;
    }

    public void setAllocationStart(Boolean allocationStart) {
        this.allocationStart = allocationStart;
    }

    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Organization getOrganization() {
        return organization;
    }

    public void setOrganization(Organization organization) {
        this.organization = organization;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public Boolean getYoufu() {
        return youfu;
    }

    public void setYoufu(Boolean youfu) {
        this.youfu = youfu;
    }

    public Boolean getEmptyNest() {
        return emptyNest;
    }

    public void setEmptyNest(Boolean emptyNest) {
        this.emptyNest = emptyNest;
    }

    public Boolean getCheckedIn() {
        return checkedIn;
    }

    public void setCheckedIn(Boolean checkedIn) {
        this.checkedIn = checkedIn;
    }

    public String getHealthCondition() {
        return healthCondition;
    }

    public void setHealthCondition(String healthCondition) {
        this.healthCondition = healthCondition;
    }

    public String getPgjg() {
        return pgjg;
    }

    public void setPgjg(String pgjg) {
        this.pgjg = pgjg;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Date getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(Date enterDate) {
        this.enterDate = enterDate;
    }

    public Date getLeaveDate() {
        return leaveDate;
    }

    public void setLeaveDate(Date leaveDate) {
        this.leaveDate = leaveDate;
    }

    public Integer getElderlyNature() {
        return elderlyNature;
    }

    public void setElderlyNature(Integer elderlyNature) {
        this.elderlyNature = elderlyNature;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getTownName() {
        return townName;
    }

    public void setTownName(String townName) {
        this.townName = townName;
    }

    public String getTownCode() {
        return townCode;
    }

    public void setTownCode(String townCode) {
        this.townCode = townCode;
    }

    public String getVillageName() {
        return villageName;
    }

    public void setVillageName(String villageName) {
        this.villageName = villageName;
    }

    public String getVillageCode() {
        return villageCode;
    }

    public void setVillageCode(String villageCode) {
        this.villageCode = villageCode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Long getMealId() {
        return mealId;
    }

    public void setMealId(Long mealId) {
        this.mealId = mealId;
    }

    public String getMealName() {
        return mealName;
    }

    public void setMealName(String mealName) {
        this.mealName = mealName;
    }

    public Date getMealEndTime() {
        return mealEndTime;
    }

    public void setMealEndTime(Date mealEndTime) {
        this.mealEndTime = mealEndTime;
    }

    public String getMzName() {
        return mzName;
    }

    public void setMzName(String mzName) {
        this.mzName = mzName;
    }

    public String getMzCode() {
        return mzCode;
    }

    public void setMzCode(String mzCode) {
        this.mzCode = mzCode;
    }

    public int getPgStatus() {
        return pgStatus;
    }

    public void setPgStatus(int pgStatus) {
        this.pgStatus = pgStatus;
    }

    public Date getNextPgDate() {
        return nextPgDate;
    }

    public void setNextPgDate(Date nextPgDate) {
        this.nextPgDate = nextPgDate;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getWedding() {
        return wedding;
    }

    public void setWedding(String wedding) {
        this.wedding = wedding;
    }

    public String getFmoney() {
        return fmoney;
    }

    public void setFmoney(String fmoney) {
        this.fmoney = fmoney;
    }

    public String getFiveNo() {
        return fiveNo;
    }

    public void setFiveNo(String fiveNo) {
        this.fiveNo = fiveNo;
    }

    public String getSupport() {
        return support;
    }

    public void setSupport(String support) {
        this.support = support;
    }

    public String getDeformity() {
        return deformity;
    }

    public void setDeformity(String deformity) {
        this.deformity = deformity;
    }

    public String getFaith() {
        return faith;
    }

    public void setFaith(String faith) {
        this.faith = faith;
    }

    public String getYbnum() {
        return ybnum;
    }

    public void setYbnum(String ybnum) {
        this.ybnum = ybnum;
    }

    public String getZfstatus() {
        return zfstatus;
    }

    public void setZfstatus(String zfstatus) {
        this.zfstatus = zfstatus;
    }

    public String getZmstatus() {
        return zmstatus;
    }

    public void setZmstatus(String zmstatus) {
        this.zmstatus = zmstatus;
    }

    public String getVision() {
        return vision;
    }

    public void setVision(String vision) {
        this.vision = vision;
    }

    public String getHear() {
        return hear;
    }

    public void setHear(String hear) {
        this.hear = hear;
    }

    public String getWit() {
        return wit;
    }

    public void setWit(String wit) {
        this.wit = wit;
    }

    public String getTalk() {
        return talk;
    }

    public void setTalk(String talk) {
        this.talk = talk;
    }

    public String getSpirit() {
        return spirit;
    }

    public void setSpirit(String spirit) {
        this.spirit = spirit;
    }

    public String getLimb() {
        return limb;
    }

    public void setLimb(String limb) {
        this.limb = limb;
    }

    public String getAllergyYaowu() {
        return allergyYaowu;
    }

    public void setAllergyYaowu(String allergyYaowu) {
        this.allergyYaowu = allergyYaowu;
    }

    public String getAllergyFood() {
        return allergyFood;
    }

    public void setAllergyFood(String allergyFood) {
        this.allergyFood = allergyFood;
    }

    public String getImpDisease() {
        return impDisease;
    }

    public void setImpDisease(String impDisease) {
        this.impDisease = impDisease;
    }
}
